from django.urls import re_path, path, include
from rest_framework import routers
from . import views

router = routers.DefaultRouter()

# router.register(r"NewToken", views.NewGamePlacetokenListViewSet, basename="10创建认证账户")

# router.register(r"Login", views.LoadGameConfListViewSet, basename="11登录服务器")

router.register(r"ConfBaseLol", views.GamePlaceconfLolBaseViewSet, basename="20lol基本配置")
router.register(
    r"ConfLevelLol", views.GamePlaceconfLolLevelViewSet, basename="21lol段位系数"
)
router.register(
    r"ConfTypesLol", views.GamePlaceconfLolTypesViewSet, basename="22lol赛制系数"
)
router.register(
    r"ConfGroupLol", views.GamePlaceconfLolGroupViewSet, basename="23lol大区系数"
)
router.register(
    r"ConfConsole", views.GamePlaceconfLolConsoleViewSet, basename="24LOL机位系数"
)
router.register(r"ConfTimer", views.GamePlaceconfLolDateViewSet, basename="25LOL时间系数")
router.register(r"ConfTasks", views.GamePlaceconfLolTasksViewSet, basename="26LOL任务系数")

# router.register(r"ShowLOL", views.GameLolHonebaoListViewSet, basename="30LOL玩家成就")
# router.register(r"PayLOL", views.GameLolHonebaoListPayedViewSet, basename="31LOL玩家兑换")
# router.register(r"LOLPost", views.PostGameLolDataListViewSet, basename="42LOL游戏数据提交")


router.register(
    r"LOLPlayer", views.GameLolUseropenidListViewSet, basename="40LOL玩家账户查询"
)
router.register(
    r"LOLLogin", views.LoginGameLolUseropenidListViewSet, basename="41LOL玩家登录"
)
router.register(
    r"LOLPost", views.LOLResDataUploadSerializerViewSet, basename="43LOL对局数据提交"
)
router.register(r"LOLChess", views.GameLolChessListViewSet, basename="44LOL对局数据查询")
router.register(r"ShowLOL", views.GameLolRewardListViewSet, basename="45LOL玩家成就查询")
router.register(r"PaysLOL", views.GameLolPayactListViewSet, basename="46LOL玩家成就兑换")

urlpatterns = [
    path("", include(router.urls)),
]
